package com.shengyin.ec.service.alliance;

import java.util.List;

import com.shengyin.ec.model.entity.Company;

public interface AllianceService {

	public List<Company> getCompanyList();

	public void createCompany(Company company);

	public void removeCompanyById(long id);

	public void modifyCompany(Company company);
	
	public List<Company> getCompany(int status);
	
	void passCompanyById(long id, int status);

	void rejectCompanyById(long id, int status);

	void cancelCompanyById(long id, int status);

	Company getCompanyById(long id);
	
	//add by lcl 2012-3-29
	boolean checkCompanyUser(String username, String pwd);
	
	//add by wql 2012-3-20
	 public List<Company> getCompanyList(int offset,int pagesize);
   
	public List<Company> getCompany(int status,int offset,int pagesize);

	List<Company> getCompanyByName(String username);

	 public Long getTotal();
	 
	 public void deleteSelectedAlliance(String[] ids);
	 
	 public void updateAlliance(Company company);
	 
	 public List<Company> getCompanyListByCity();
	 public List<Company> getCompanyListByNature();
	 public List<Company> getCompanyListByEmployee();
	 public List<Company> getAllianceCompanyList();
	 
	 public List<Company> getCompanyListByName(String keyword,int offset,int pageSize);
	 public List<Company> getCompanyListByName(String keyword);
	
}
